package com.yonyou;

import com.yonyou.entity.User;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;


public class MyMapperProxy implements InvocationHandler {

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		System.out.println("查询数据库");
	// 拿到mybatis一些api  sqlsessionfacotry   configuration
		return new User();
	}
}
